﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UcAsp.Net.Interface;
namespace UcAsp.Net.BLL
{
   public  class SysParemSelect : ISelect
    {
       public List<object> Execute(object id)
       {
           List<Model.SysParam> list = new BLL.SysParamBLL().GetListByGroupID(Convert.ToInt32(id));
           List<Model.Select> query = new List<Model.Select>();
           foreach (Model.SysParam c in list)
           {
               Model.Select s = new Model.Select();
               s.Name = c.ParamName;
               s.Value = c.ParamValue.ToString();
               query.Add(s);
           }
           return query.ToList<object>();
        
        }
           
    }
}
